﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<IBupro.Models.UserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:Html.Translate("personalInformations") %></h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            
            <div class="editor-label">
                <%:Html.Translate("firstName") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.User.FirstName) %>
                <%: Html.ValidationMessageFor(model => model.User.FirstName) %>
            </div>
            
            <div class="editor-label">
                <%:Html.Translate("lastName") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.User.LastName)%>
                <%: Html.ValidationMessageFor(model => model.User.LastName)%>
            </div>

        </fieldset>

        <fieldset>
            
             <div class="editor-label">
                <%:Html.Translate("userRoles") %>
            </div>
            <div class="editor-field">
                <%: Html.ListBox("SelectedRoles", Model.MultiSelectListRoles(), new { @class = "select" })%>
            </div>

            <p>
                <input type="submit" value="<%:Html.Translate("save") %>" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

